package com.tubi.MyAtomThread;

public class MyAtom  extends  Thread{

    private  static  int  count  = 0;
    private static Object lock = new Object();
    @Override
    public void run() {
        for (int i = 0; i <100 ; i++) {

            synchronized (lock) {
                count++;
                System.out.println("送完了"+ count);
            }
        }
    }
}
